<?php


function convert_arr_keys($arr, $key_name){
    $result = array();
    foreach($arr as $key => $val){
        $result[$val[$key_name]][] = '/Uploads/'.$val['savepath'].$val['savename'];
    }
    return $result;
}

 function xulie($type){
    if(is_array($type)){
      $picarrNum = count($type);
      $picarrTmp = '';
    for($i=0;$i<$picarrNum;$i++){
       $picarrTmp[] = $type[$i];
    }
      $type = serialize($picarrTmp);
    }
    return $type;
}
